﻿using System;
using System.Collections.Generic;

using System.Text;
using QUANLYCHAMCONG.BL.Entities;
using QUANLYCHAMCONG.DAO.DAO;
using System.Data;

namespace QUANLYCHAMCONG.BL.BUS
{
    public class CHAMCONGBUS
    {
        public CHAMCONGBUS() { }
        public static bool Insert(CHAMCONG kh)
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.Insert(kh);
        }
        public static bool Insert(CHAMCONG kh,int FLAG)
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.Insert(kh,FLAG);
        }
        public static bool Update(CHAMCONG kh)
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.Update(kh);
        }
        public static bool Delete(CHAMCONG kh)
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.Delete(kh);
        }
        public static DataTable SelectAll()
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.SelectALL();
        }
        public static DataTable SelectPK(CHAMCONG kh)
        {
            CHAMCONGDAO dao = new CHAMCONGDAO();
            return dao.SelectByPK(kh);
        }
    }
}
